package com.wm.homework02;

public class Person {
    public void use(Telephone tel){
        tel.dailup();
    }
    public void use(Play play){
        play.play();
    }
    public void use(TakePhoto photo){
        photo.takePhoto();
    }
    public void use(Mobile mobile){
        mobile.dailup();
        mobile.play();
        mobile.takePhoto();
    }

}
